package com.szcinda.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OrganizationRepository extends JpaRepository<Organization, String> {
    List<Organization> findByParentIdIsNullAndStatus(String status);
    List<Organization> findByParentIdIsNull();
    List<Organization> findByParentIdAndStatus(String parentId, String status);
    List<Organization> findByStatus(String status);
    List<Organization> findByParentId(String parentId);
    Organization findById(String id);
    List<Organization> findByIdIn(List<String> ids);
    Organization findByNameAndFullName(String name, String fullName);
    List<Organization> findByPrefixNotNull();
}
